import { fromJS } from "immutable";
import setData from "./type";
 const initialState = fromJS({
    detail:[]
 })
 const reducer = (state=initialState,{type,data})=>{
    try{
        return setData[type](state,data)
    }catch(error){
        return state
    }
 }
 export default reducer

 